﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NWBA_Public
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Check if user is logged in - if so show logout link.
            if(Session["Username"] != null)
            {
                LoginMessage.Text = "Welcome, " + Session["Username"].ToString();
                LoginSection.Visible = true;
            }
            else
            {
                LoginSection.Visible = false;
            }
        }

        public NavigationBar NavBar
        {
            get
            {
                return NavigationBar;
            }
        }
    }
}
